id_card = "110101199003074512"
csn = id_card[6:10]
print("出生年:",csn)
csy = id_card[10:12]
csr = id_card[12:14]
print(f"出生于:{csy}月{csr}日")
xb = id_card[16] 
gender_num = int(xb)
gender = "男" if gender_num % 2 == 1 else "女"
print("性别:", gender)
dz = id_card[0:6]
print("地址编码为:"+dz+"北京")